package com.yincheng.oes.business.exam.base.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author yangsy
 * @version 1.0.0
 * @since 创建时间：2018年7月13日
 * 功能描述：试卷基本信息实体类
 * 邮箱地址：446948434@qq.com
 */
public class Paper {
    /**
     * 主键id
     */
    private String id;

    /**
     * 试卷名称
     */
    private String paperName;

    /**
     * 试卷状态，1：起草中，2：已发布，3：失效中
     */
    private String status;

    /**
     * 总分
     */
    private Float totalScore;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人账号
     */
    private String createUserAccount;

    /**
     * 创建人姓名
     */
    private String createUserName;

    /**
     * 修改时间
     */
    private Date modifyTime;

    /**
     * 试卷的题目列表
     */
    private List<PaperQuesDetail> paperDetails;

    /**
     * 版本号（乐观锁使用）
     */
    private Integer version;

    /**
     * @return the paperDetails
     */
    public List<PaperQuesDetail> getPaperDetails() {
        paperDetails = paperDetails == null ? new ArrayList<PaperQuesDetail>() : paperDetails;
        return paperDetails;
    }

    /**
     * @param paperDetails the paperDetails to set
     */
    public void setPaperDetails(List<PaperQuesDetail> paperDetails) {
        this.paperDetails = paperDetails;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPaperName() {
        return paperName;
    }

    public void setPaperName(String paperName) {
        this.paperName = paperName == null ? null : paperName.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Float getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(Float totalScore) {
        this.totalScore = totalScore;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUserAccount() {
        return createUserAccount;
    }

    public void setCreateUserAccount(String createUserAccount) {
        this.createUserAccount = createUserAccount == null ? null : createUserAccount.trim();
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName == null ? null : createUserName.trim();
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    /**
     * @return the version
     */
    public Integer getVersion() {
        return version;
    }

    /**
     * @param version the version to set
     */
    public void setVersion(Integer version) {
        this.version = version;
    }
}
